package com.medical.medical.service;

import com.medical.medical.entity.Role;
import com.medical.medical.mapper.RoleMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @authorDesc 你相信光吗？
 * @author GUOYN
 * @date 2022-09-14 09:19:39
 * @version 1.0.0
 * @description 角色信息业务逻辑层实现类
 */
@Slf4j
@Service
public class RoleServiceImpl implements RoleService{
    @Resource
    private RoleMapper roleMapper;
    /**
      * @description 获得角色信息
      * @author GUOYN
      * @date 2022-09-15 16:03:42  * @param
      * @return {@link List< Role>}
      */
    @Override
    public List<Role> getRoleList() {
        try {
            return roleMapper.getRoleList();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
